﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SIAKADCORE.Models
{
    class DetailRekomendasi
    {
        #region Constants
        public const int IdLength = 20;
        public const string IdPrefix = "DRK";
        public const string TableName = "[dbo].[detail_rekomendasi]";
        public const string ColumnNameIdDetailRekomendasi = "[id_detail_rekomendasi]";
        public const string ColumnNameIdRekomendasi = "[id_rekomendasi]";
        public const string ColumnNameIdAnalisis = "[id_analisis]";
        #endregion

        #region Fields
        private string idDetailRekomendasi;
        private string idRekomendasi;
        private string idAnalisis;
        #endregion 


        #region Properties
        public string IdDetailRekomendasi
        {
            get { return this.idDetailRekomendasi; }
            set { this.idDetailRekomendasi = value; }
        }

        public string IdRekomendasi
        {
            get { return this.idRekomendasi; }
            set { this.idRekomendasi = value; }
        }

        public string IdAnalisis
        {
            get { return this.idAnalisis; }
            set { this.idAnalisis = value; }
        }
        #endregion 

        #region Constructors
        public DetailRekomendasi(string idDetailRekomendasi, string idRekomendasi, string idAnalisis)
        {
            this.idDetailRekomendasi = idDetailRekomendasi;
            this.idRekomendasi = idRekomendasi;
            this.idAnalisis = idAnalisis;
        }
        #endregion

        public override string ToString()
        {
            return string.Format("ID_DETAIL_REKOMENDASI: {0} | ID_REKOMENDASI: {1} | ID_ANALISIS: {2}", this.idDetailRekomendasi, this.idRekomendasi, this.idAnalisis);
        }
    }
}
